<?xml version="1.0" encoding="utf-8"?>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="cn.kgb.javabean.*" %>
<%@ page import="cn.kgb.dao.*" %>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<% 
	response.setContentType("text/vnd.wap.wml"); 
	String resID = request.getParameter("resid");

%>
<wml>
<card title="克格勃工作中心">
<%
	ResourcesDAO resDAO = new ResourcesDAO();
	String []id = {resID};
	List list = resDAO.getResourcesById(id);
	Iterator its = list.iterator();
	while(its.hasNext()){
	 Resources res = (Resources)its.next();
	 %>
	 <p align="center"><%=res.getTitle() %><br />
	 </p>
	 <p><%=res.getContent() %><br/>
	 </p>
	 <%
	 	}
 %>
 精彩资讯就在此！<br/>copyright@克格勃工作中心<br/>
 [<%=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Calendar.getInstance().getTime()) %>]
</card>
</wml>